package cn.echogo.framework.widget;

import android.content.Context;
import android.graphics.Bitmap;
import android.util.AttributeSet;
import android.widget.FrameLayout;
import cn.echogo.framework.image.BitmapRect;
import cn.echogo.framework.inter.Loadable;
import cn.echogo.framework.inter.Recyclable;

/**
 * 
 * 1.边框、边框类型、边框样式等 2.Cache中取、远程中取等 3.回调处理
 * 
 * 
 */
public class EGImageView extends FrameLayout implements Loadable<String>, Recyclable {

	private Bitmap bitmap;

	public EGImageView(Context context) {
		super(context);
	}

	public EGImageView(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public EGImageView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
	}
	
	public void setBeforeLoad(BitmapRect rect) {
		
	}
	
	@Override
	public void load(String imgUrl) {
		
	}

	@Override
	public void recycle() {
		if (bitmap != null && !bitmap.isRecycled()) {
			bitmap.recycle();
		}
	}

}
